<?php

/* 订单 courseorder */
class CourseorderModel extends BaseModel
{
    var $table  = 'courseorder';
    var $prikey = 'order_id';
    var $_name  = 'courseorder';
    
	function json_result ($retval = '', $msg = '', $jqremote = false)
	{
		json_header();
		$json = ecm_json_encode(array('done' => true , 'msg' => $msg , 'retval' => $retval));
		if ($jqremote === false)
		{
			$jqremote = isset($_GET['jsoncallback']) ? trim($_GET['jsoncallback']) : false;
		}
		if ($jqremote)
		{
			$json = $jqremote . '(' . $json . ')';
		}
	
		return $json;
	}
}